projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f6059e
)
i.MX6: Add convenience macros cpu_type(rev) and is_cpu_type(cpu)
author
Eric Nelson
<
[email protected]
>
Thu, 29 Aug 2013 17:57:10 +0000
(10:57 -0700)
committer
Stefano Babic
<
[email protected]
>
Sat, 31 Aug 2013 16:03:55 +0000
(18:03 +0200)
Signed-off-by: Eric Nelson <
[email protected]
>
Acked-by: Stefano Babic <
[email protected]
>
arch/arm/include/asm/arch-mx6/sys_proto.h
patch
|
blob
|
history
diff --git
a/arch/arm/include/asm/arch-mx6/sys_proto.h
b/arch/arm/include/asm/arch-mx6/sys_proto.h
index bfdfd2911d05b10773ffcd53b93ae2de90899866..8c21364e71b7ca72cff54dd7344da533fe77cdc1 100644
(file)
--- a/
arch/arm/include/asm/arch-mx6/sys_proto.h
+++ b/
arch/arm/include/asm/arch-mx6/sys_proto.h
@@
-19,6
+19,13
@@
#define is_soc_rev(rev) ((get_cpu_rev() & 0xFF) - rev)
u32 get_cpu_rev(void);
+
+/* returns MXC_CPU_ value */
+#define cpu_type(rev) (((rev) >> 12)&0xff)
+
+/* use with MXC_CPU_ constants */
+#define is_cpu_type(cpu) (cpu_type(get_cpu_rev()) == cpu)
+
const char *get_imx_type(u32 imxtype);
unsigned imx_ddr_size(void);